package lab02.Test12;

/**
 * Created by lenovo on 2017/10/20.
 */
public class Rectangular implements Shape {

    double length;
    double wide;
    public Rectangular(double l,double w){
        length=l;
        wide=w;

    }
    double area(){
        double area=length*wide;
        return area;
    }
    double periemer(){
        double periemer=(length+wide)*2;
        return periemer;
    }




    public  void put(){
        System.out.println("长方形边长是："+length+" "+wide);
        System.out.println("长方形面积为："+area());
        System.out.println("长方形周长为："+periemer());
    }
}
